import java.util.Scanner;

public class cas
{

  public static void main (String[] args)
  {

    double D,S,C;

    Scanner scan = new Scanner (System.in);
  
    System.out.println ("Enter the number of D: ");
    D = scan.nextDouble( );

    C = 4 * D;
    System.out.println ("The number of C: " + C);
   

     S = D * D;
    System.out.println ("The number of S: " + S);
  }
}
